<template>
  <div class="success-tip">
    <div class="img">
      <img src="@/assets/images/success@2x.jpg" width="100%" height="100%" />
    </div>
    <div class="text">{{ text }}</div>
  </div>
</template>

<script>
export default {
  name: "SuccessTip",
  props: {
    text: {
      type: String,
    },
  },
};
</script>
<style lang="scss" scoped>
.success-tip {
  position: absolute;
  top: calc(50% - 156px);
  left: calc(50% - 226px);
  width: 452px;
  height: 312px;
  background: #ffffff;
  box-shadow: 0px 0px 60px 0px rgba(0, 0, 0, 0.06);
  border-radius: 24px;

  .img {
    margin: 84px auto 22px;
    width: 98px;
    height: 98px;
  }

  .text {
    text-align: center;
    font-size: 24px;
    color: #333333;
  }
}
</style>
